﻿using MesBSW.DAL.RoleDB;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;

namespace MesBSW.DAL.RoleDTO
{
    [NotMapped]
    public class BaseUserDTO : BaseUserModel
    {
        /// <summary>
        /// 员工所在部门
        /// </summary>
        [NotMapped]
        public BaseDeptModel deptModel = new BaseDeptModel();

        /// <summary>
        /// 性别
        /// </summary>
        [NotMapped]
        public string SexName { get; set; }

        /// <summary>
        /// 状态，0代表没改变，1代表新增，2代表更新，3代表删除
        /// </summary>
        [NotMapped]
        public int RowState { get; set; }


        /// <summary>
        /// 用户对应的角色
        /// </summary>
        [NotMapped]
        public BaseRoleModel RoleModel { get; set; }


        /// <summary>
        /// 可操作部门
        /// </summary>
        [NotMapped]
        public List<BaseDeptModel> UseDetpList = new List<BaseDeptModel>();
    }
}
